package com.joyintech.vo.todogen;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class TodoGenReq implements Serializable {
/**待办任务编号**/
    /**待办任务编号**/
    private String eventId;
    /**待办任务大类**/
    private String messageCategory;
    /**待办任务小类**/
    private String messageSubCategory;
    /**待办任务批量推送列表**/
    private List<TodoGenListReq> batchCreateBacklogTaskList = new ArrayList<>() ;

    private Map<String, Object> paramMap = new HashMap<>();

    public TodoGenReq(String eventId, String messageCategory, String messageSubCategory, List<TodoGenListReq> batchCreateBacklogTaskList) {
        this.eventId = eventId;
        this.messageCategory = messageCategory;
        this.messageSubCategory = messageSubCategory;
        this.batchCreateBacklogTaskList = batchCreateBacklogTaskList;
    }

    /**
     * 放MAP参数
     * @param RequestLink
     */
    public void insertParamMap(String RequestLink){
        Map<String,Object> map =new HashMap<>();
        map.put("RequestLink",RequestLink);
        this.paramMap=map;
    }

    @Override
    public String toString() {
        return "TodoGenReq{" +
                "eventId='" + eventId + '\'' +
                ", messageCategory='" + messageCategory + '\'' +
                ", messageSubCategory='" + messageSubCategory + '\'' +
                ", batchCreateBacklogTaskList=" + batchCreateBacklogTaskList +
                ", paramMap=" + paramMap +
                '}';
    }
}
